﻿@{
    Layout = null;
}
@using SMODEL;
@{
    Users_model user = Session["user"] as Users_model;
}
<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Demo</title>
    <link href="~/BootstrapSouce/css/bootstrap.min.css" rel="stylesheet" />
    <script src="~/BootstrapSouce/js/jquery.min.js"></script>
    <script src="~/BootstrapSouce/js/bootstrap.min.js"></script>

    <link href="~/Content/Public/font-awesome.css" rel="stylesheet" />
    <link href="~/Content/Public/ace.css" rel="stylesheet" />
    <link href="~/Content/Public/ace-rtl.css" rel="stylesheet" />
    <link href="~/Content/Public/ace-skins.css" rel="stylesheet" />
    <script src="~/Content/Public/ace-extra.js"></script>

    <script type="text/javascript" src="/twitter-bootstrap/twitter-bootstrap-v2/docs/assets/js/jquery.js"></script>
    <script type="text/javascript" src="/twitter-bootstrap/twitter-bootstrap-v2/docs/assets/js/bootstrap-collapse.js"></script>

    <style>
        * {
            margin: 0;
            padding: 0;
            font-size: 12px;
        }
    </style>



    @*<script src="~/Content/Exam/bootstrap.js"></script>
        <script src="~/Content/Exam/ace.js"></script>
        <script src="~/Content/Exam/ace-elements.js"></script>
        <script src="~/Content/Exam/jquery.easyppie-chart.js"></script>
        <script src="~/Content/Exam/jquery.flot.js"></script>
        <script src="~/Content/Exam/jquery.flot.pie.js"></script>
        <script src="~/Content/Exam/jquery.flot.resize.js"></script>
        <script src="~/Content/Exam/jquery.slimscroll.js"></script>
        <script src="~/Content/Exam/jquery.sparkline.js"></script>
        <script src="~/Content/Exam/jquery.ui.js"></script>
        <script src="~/Content/Exam/jquery_ui_1.10.3.js"></script>
        <script src="~/Content/Exam/typeahead-ds2.js"></script>*@
</head>
<body>

    <div class="navbar navbar-default" id="navbar">
        <div class="navbar-header pull-left">
            <a href="#" class="navbar-brand">
                <small>
                    <i class="glyphicon glyphicon-leaf"></i>八维学生考试系统
                </small>
            </a><!-- /.brand -->
        </div><!-- /.navbar-header -->
        <div class="navbar-header pull-right" role="navigation">
            <ul class="nav ace-nav" style="height:38px">
                <li class="light-blue">
                    <a data-toggle="dropdown" href="#" class="dropdown-toggle">
                        <span class="glyphicon glyphicon-user" style="width:38px;height:38px;font-size:30px;"></span>
                        <span class="user-info"><small>欢迎光临</small><strong style="font-size:16px;">@user.UserName</strong></span>
                        <span class="caret"></span>
                    </a>
                    <ul class="user-menu pull-right dropdown-menu dropdown-yellow dropdown-caret dropdown-close">
                        <li>
                            <a href="index.php?m=User&a=info">
                                <i class="glyphicon glyphicon-user" style="font-size:12px;"></i>个人资料
                            </a>
                        </li>
                        <li class="divider"></li>
                        <li>
                            <a href="/LoginIn/Index">
                                <i class="glyphicon glyphicon-off" style="font-size:12px;"></i>退出
                            </a>
                        </li>
                    </ul>
                </li>
            </ul><!-- /.ace-nav -->
        </div><!-- /.navbar-header -->
    </div><!-- /.container -->




    <div class="main-container" id="main-container">
        <a class="menu-toggler" id="menu-toggler" href="#">
            <span class="menu-text"></span>
        </a>

        <div class="sidebar" id="sidebar" style="float:left">
            <ul class="nav nav-list">
                @if (user.RoleId == 1)
                {
                    <li>
                        <a href="index.php?m=User&amp;a=info">
                            <i class="glyphicon glyphicon-text-width"></i>
                            <span class="menu-text"> 学生信息</span>
                        </a>
                    </li>
                    <li>
                        <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseOne">
                            <i class="glyphicon glyphicon-list"></i>
                            <span class="menu-text">考试管理</span><b class="arrow glyphicon glyphicon-menu-down" style="font-size:10px;"></b>
                        </a>
                        <ul id="collapseOne" class="nav nav-list accordion-body collapse" style="height: 0px; ">
                            <li class="accordion-inner">
                                <a href="index.php?m=Examlist&amp;a=exam">
                                    <i class="glyphicon glyphicon-pencil" style="color:gray;font-size:10px;"></i>
                                    <span class="menu-text">开始考试</span>
                                </a>
                            </li>
                            <li class="accordion-inner">
                                <a href="index.php?m=History&amp;a=all">
                                    <i class="glyphicon glyphicon-list-alt" style="color:gray;font-size:10px;"></i>
                                    <span class="menu-text">历史试卷</span>
                                </a>
                            </li>
                        </ul>
                    </li>
                }

                @if (user.RoleId == 3)
                {
                    <li>
                        <a href="index.php?m=User&amp;a=info">
                            <i class="glyphicon glyphicon-text-width"></i>
                            <span class="menu-text"> 学生信息</span>
                        </a>
                    </li>
                    <li>
                        <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseOne">
                            <i class="glyphicon glyphicon-list"></i>
                            <span class="menu-text">考试管理</span><b class="arrow glyphicon glyphicon-menu-down" style="font-size:10px;"></b>
                        </a>
                        <ul id="collapseOne" class="nav nav-list accordion-body collapse" style="height: 0px; ">
                            <li class="accordion-inner">
                                <a href="index.php?m=Examlist&amp;a=exam">
                                    <i class="glyphicon glyphicon-pencil" style="color:gray;font-size:10px;"></i>
                                    <span class="menu-text">开始考试</span>
                                </a>
                            </li>
                            <li class="accordion-inner">
                                <a href="index.php?m=History&amp;a=all">
                                    <i class="glyphicon glyphicon-list-alt" style="color:gray;font-size:10px;"></i>
                                    <span class="menu-text">历史试卷</span>
                                </a>
                            </li>
                        </ul>
                    </li>
                    <li>
                        <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseTwo">
                            <i class="glyphicon glyphicon-list"></i>
                            <span class="menu-text">考试管理</span><b class="arrow glyphicon glyphicon-menu-down" style="font-size:10px;"></b>
                        </a>
                        <ul id="collapseTwo" class="nav nav-list accordion-body collapse" style="height: 0px; ">
                            <li class="accordion-inner">
                                <a href="index.php?m=Examlist&amp;a=exam">
                                    <i class="glyphicon glyphicon-pencil" style="color:gray;font-size:10px;"></i>
                                    <span class="menu-text">开始考试</span>
                                </a>
                            </li>
                            <li class="accordion-inner">
                                <a href="index.php?m=History&amp;a=all">
                                    <i class="glyphicon glyphicon-pencil" style="color:gray;font-size:10px;"></i>
                                    <span class="menu-text">历史试卷</span>
                                </a>
                            </li>
                        </ul>
                    </li>
                    <li>
                        <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseThree">
                            <i class="glyphicon glyphicon-list"></i>
                            <span class="menu-text">考试管理</span><b class="arrow glyphicon glyphicon-menu-down" style="font-size:10px;"></b>
                        </a>
                        <ul id="collapseThree" class="nav nav-list accordion-body collapse" style="height: 0px; ">
                            <li class="accordion-inner">
                                <a href="index.php?m=Examlist&amp;a=exam">
                                    <i class="glyphicon glyphicon-pencil" style="color:gray;font-size:10px;"></i>
                                    <span class="menu-text">开始考试</span>
                                </a>
                            </li>
                            <li class="accordion-inner">
                                <a href="index.php?m=History&amp;a=all">
                                    <i class="glyphicon glyphicon-pencil" style="color:gray;font-size:10px;"></i>
                                    <span class="menu-text">历史试卷</span>
                                </a>
                            </li>
                        </ul>
                    </li>
                    <li>
                        <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseFour">
                            <i class="glyphicon glyphicon-list"></i>
                            <span class="menu-text">考试管理</span><b class="arrow glyphicon glyphicon-menu-down" style="font-size:10px;"></b>
                        </a>
                        <ul id="collapseFour" class="nav nav-list accordion-body collapse" style="height: 0px; ">
                            <li class="accordion-inner">
                                <a href="index.php?m=Examlist&amp;a=exam">
                                    <i class="glyphicon glyphicon-pencil" style="color:gray;font-size:10px;"></i>
                                    <span class="menu-text">开始考试</span>
                                </a>
                            </li>
                            <li class="accordion-inner">
                                <a href="index.php?m=History&amp;a=all">
                                    <i class="glyphicon glyphicon-pencil" style="color:gray;font-size:10px;"></i>
                                    <span class="menu-text">历史试卷</span>
                                </a>
                            </li>
                        </ul>
                    </li>
                }

                @*<li style="display:none;">
                        <a href="#" class="dropdown-toggle">
                            <i class="icon-edit"></i>
                            <span class="menu-text"> 学生练习 </span><b class="arrow icon-angle-down"></b>
                        </a>
                        <ul class="submenu">
                            <li>
                                <a href="javascript:que_be()">
                                    <i class="icon-double-angle-right"></i>开始答题
                                </a>
                            </li>
                            <li>
                                <a href="index.php?m=Error&amp;a=errorlist">
                                    <i class="icon-double-angle-right"></i>查看错题
                                </a>
                            </li>
                            <li>
                                <a href="index.php?m=Set&amp;a=setdis">
                                    <i class="icon-double-angle-right"></i>设　　置
                                </a>
                            </li>
                        </ul>
                    </li>*@
                    @*<li>
                            <a href="#" class="dropdown-toggle">
                                <i class="icon-list"></i>
                                <span class="menu-text"> 历史试卷3</span><b class="arrow icon-angle-down"></b>
                            </a>
                            <ul class="submenu"></ul>
                        </li>*@
                </ul><!-- /.nav-list -->
                <div class="sidebar-collapse" id="sidebar-collapse">
                    <i class="glyphicon glyphicon-edit" data-icon1="icon-double-angle-left" data-icon2="icon-double-angle-right"></i>
                </div>
            </div>
            <div class="main-content">
                <div class="breadcrumbs">
                    <ul class="breadcrumb">
                        <li>
                            <a href="#"><i class="glyphicon glyphicon-home"></i>八维学生考试系统</a>
                        </li>
                        <li>
                            <span>> 首页</span>
                        </li>
                    </ul><!-- .breadcrumb -->
                </div>
            </div>
        </div>
        <div class="col-md-4" style="width:40%;"></div>
        <div class="col-md-7" style=" width:84.7%;">@RenderBody()</div>
        <div class="col-md-1" style="width:40%;"></div>
    </body>
</html>
